package com.example.light_fragment.json;

import java.util.List;

import android.util.Log;

import com.example.light_fragment.model.Basic_User_Info;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class JsonUtils {
	public void parseJson(String jsonData) {
		Gson gson = new Gson();
		List<Basic_User_Info> userinfoList = gson.fromJson(jsonData,
				new TypeToken<List<Basic_User_Info>>() {
				}.getType());
		for (Basic_User_Info user : userinfoList) {
			System.out.println(user == null);
			Log.d("Json", "user_id--->" + user.getUser_id());
			Log.d("Json", "user_name--->" + user.getUser_name());
			Log.d("Json", "user_password--->" + user.getPassword());
			Log.d("Json", "telephone--->" + user.getTelephone());
			Log.d("Json", "email--->" + user.getEmail());

		}
	}
}
